package br.net.atasacramental.util;

public class Paginacao {
	private int max;
	private int pag;
	private String orderBy;
	private String order;
	private String filterBy;
	private String filterValue;
	public Paginacao() {
		super();
	}
	public Paginacao(int max, int pag, String orderBy, String order,
			String filterBy, String filterValue) {
		super();
		this.max = max;
		this.pag = pag;
		this.orderBy = orderBy;
		this.order = order;
		this.filterBy = filterBy;
		this.filterValue = filterValue;
	}
	public int getMax() {
		return max;
	}
	public int getInitial(){
		return (this.pag*this.max)-this.max;
	}
	public int getFinal(){
		return (this.pag*this.max);
	}
	public void setMax(int max) {
		this.max = max;
	}
	public int getPag() {
		return pag;
	}
	public void setPag(int pag) {
		this.pag = pag;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	public String getFilterBy() {
		return filterBy;
	}
	public void setFilterBy(String filterBy) {
		this.filterBy = filterBy;
	}
	public String getFilterValue() {
		return filterValue;
	}
	public void setFilterValue(String filterValue) {
		this.filterValue = filterValue;
	}
	
	
}
